Skip to content

fix scan timeframe with use_terms_query#1097

Merged
jertel merged 3 commits intojertel:masterfrom
rschirin:fix-scan-timeframe
Feb 1, 2023
Merged

fix scan timeframe with use_terms_query#1097
jertel merged 3 commits intojertel:masterfrom
rschirin:fix-scan-timeframe

Conversation

@rschirin
Copy link
Contributor

Description

Following issue YelpArchive/elastalert#3041 and PR YelpArchive/elastalert#3141, when a rule has [scan_entire_timeframe: true] and [use_terms_query: true or use_count_query: true], the timeframe (i.e. 5 days) is evaluated correctly just at first run; from the second one, the timeframe will be set accordly to run_every value (i.e. 5 minutes).
This change only affects rules with option use_count_query or use_term_query.

Checklist

  • I have reviewed the contributing guidelines.
  • I have included unit tests for my changes or additions.
  • I have successfully run make test-docker with my changes.
  • I have manually tested all relevant modes of the change in this PR.
  • I have updated the documentation.
  • I have updated the changelog.

Questions or Comments

@jertel jertel merged commit 8b9eaac into jertel:master Feb 1, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants